<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::CVFolds&lt; DatasetTypeT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_c_v_folds.html">CVFolds</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_c_v_folds-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::CVFolds&lt; DatasetTypeT &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_c_v_dataset_tools_8h_source.html">shark/Data/CVDatasetTools.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a34e7cbd1c1ee70e1052194320e946574" id="r_a34e7cbd1c1ee70e1052194320e946574"><td class="memItemLeft" align="right" valign="top">typedef DatasetTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a></td></tr>
<tr class="separator:a34e7cbd1c1ee70e1052194320e946574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefd7fec613275b78bcc1eedfc0694b2f" id="r_aefd7fec613275b78bcc1eedfc0694b2f"><td class="memItemLeft" align="right" valign="top">typedef DatasetType::IndexSet&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#aefd7fec613275b78bcc1eedfc0694b2f">IndexSet</a></td></tr>
<tr class="separator:aefd7fec613275b78bcc1eedfc0694b2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad1e48f9176458dbb2d1229219baafbed" id="r_ad1e48f9176458dbb2d1229219baafbed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#ad1e48f9176458dbb2d1229219baafbed">CVFolds</a> ()</td></tr>
<tr class="memdesc:ad1e48f9176458dbb2d1229219baafbed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an empty set of folds.  <br /></td></tr>
<tr class="separator:ad1e48f9176458dbb2d1229219baafbed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca57fb2a330236dca37fa47240e89a22" id="r_aca57fb2a330236dca37fa47240e89a22"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#aca57fb2a330236dca37fa47240e89a22">CVFolds</a> (<a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> const &amp;set, std::vector&lt; <a class="el" href="classshark_1_1_c_v_folds.html#aefd7fec613275b78bcc1eedfc0694b2f">IndexSet</a> &gt; const &amp;validationIndizes)</td></tr>
<tr class="memdesc:aca57fb2a330236dca37fa47240e89a22"><td class="mdescLeft">&#160;</td><td class="mdescRight">partitions set in validation folds indicated by the second argument.  <br /></td></tr>
<tr class="separator:aca57fb2a330236dca37fa47240e89a22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c977743c718d50db3fdf76741ffbbdd" id="r_a5c977743c718d50db3fdf76741ffbbdd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#a5c977743c718d50db3fdf76741ffbbdd">CVFolds</a> (<a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> const &amp;set, std::vector&lt; std::size_t &gt; const &amp;foldStart)</td></tr>
<tr class="separator:a5c977743c718d50db3fdf76741ffbbdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71a49586552161e0027348fa3a165310" id="r_a71a49586552161e0027348fa3a165310"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#a71a49586552161e0027348fa3a165310">training</a> (std::size_t i) const</td></tr>
<tr class="separator:a71a49586552161e0027348fa3a165310"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02f53dc5f3585ac17b190bbbe9549b88" id="r_a02f53dc5f3585ac17b190bbbe9549b88"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#a02f53dc5f3585ac17b190bbbe9549b88">validation</a> (std::size_t i) const</td></tr>
<tr class="separator:a02f53dc5f3585ac17b190bbbe9549b88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2345d3eba31a6b7d4d47cd8e0e6f6e7" id="r_ab2345d3eba31a6b7d4d47cd8e0e6f6e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_c_v_folds.html#aefd7fec613275b78bcc1eedfc0694b2f">IndexSet</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#ab2345d3eba31a6b7d4d47cd8e0e6f6e7">validationFoldIndices</a> (std::size_t i) const</td></tr>
<tr class="memdesc:ab2345d3eba31a6b7d4d47cd8e0e6f6e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the indices that make up the i-th validation fold  <br /></td></tr>
<tr class="separator:ab2345d3eba31a6b7d4d47cd8e0e6f6e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04f39c269ed88cf04953269a022f925a" id="r_a04f39c269ed88cf04953269a022f925a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_c_v_folds.html#aefd7fec613275b78bcc1eedfc0694b2f">IndexSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#a04f39c269ed88cf04953269a022f925a">trainingFoldIndices</a> (std::size_t i) const</td></tr>
<tr class="separator:a04f39c269ed88cf04953269a022f925a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55e4d73aff1389cb61fc9e41fc1e92ee" id="r_a55e4d73aff1389cb61fc9e41fc1e92ee"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#a55e4d73aff1389cb61fc9e41fc1e92ee">size</a> () const</td></tr>
<tr class="memdesc:a55e4d73aff1389cb61fc9e41fc1e92ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of folds of the dataset.  <br /></td></tr>
<tr class="separator:a55e4d73aff1389cb61fc9e41fc1e92ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0bbe71a5ab3021ec9b6e43d7b6555fd" id="r_ad0bbe71a5ab3021ec9b6e43d7b6555fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#ad0bbe71a5ab3021ec9b6e43d7b6555fd">dataset</a> () const</td></tr>
<tr class="memdesc:ad0bbe71a5ab3021ec9b6e43d7b6555fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the dataset underying the folds.  <br /></td></tr>
<tr class="separator:ad0bbe71a5ab3021ec9b6e43d7b6555fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a523c99e2d2843046e679990653983839" id="r_a523c99e2d2843046e679990653983839"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_v_folds.html#a523c99e2d2843046e679990653983839">dataset</a> ()</td></tr>
<tr class="memdesc:a523c99e2d2843046e679990653983839"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the dataset underying the folds.  <br /></td></tr>
<tr class="separator:a523c99e2d2843046e679990653983839"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class DatasetTypeT&gt;<br />
class shark::CVFolds&lt; DatasetTypeT &gt;</div>
<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00049">49</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a34e7cbd1c1ee70e1052194320e946574" name="a34e7cbd1c1ee70e1052194320e946574"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34e7cbd1c1ee70e1052194320e946574">&#9670;&#160;</a></span>DatasetType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef DatasetTypeT <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::DatasetType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00051">51</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

</div>
</div>
<a id="aefd7fec613275b78bcc1eedfc0694b2f" name="aefd7fec613275b78bcc1eedfc0694b2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefd7fec613275b78bcc1eedfc0694b2f">&#9670;&#160;</a></span>IndexSet</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef DatasetType::IndexSet <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::IndexSet</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00052">52</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad1e48f9176458dbb2d1229219baafbed" name="ad1e48f9176458dbb2d1229219baafbed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1e48f9176458dbb2d1229219baafbed">&#9670;&#160;</a></span>CVFolds() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::CVFolds </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates an empty set of folds. </p>

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00055">55</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

</div>
</div>
<a id="aca57fb2a330236dca37fa47240e89a22" name="aca57fb2a330236dca37fa47240e89a22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca57fb2a330236dca37fa47240e89a22">&#9670;&#160;</a></span>CVFolds() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::CVFolds </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> const &amp;&#160;</td>
          <td class="paramname"><em>set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classshark_1_1_c_v_folds.html#aefd7fec613275b78bcc1eedfc0694b2f">IndexSet</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>validationIndizes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>partitions set in validation folds indicated by the second argument. </p>
<p>The folds are given as the batch indices of the validation sets </p>

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00059">59</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

</div>
</div>
<a id="a5c977743c718d50db3fdf76741ffbbdd" name="a5c977743c718d50db3fdf76741ffbbdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c977743c718d50db3fdf76741ffbbdd">&#9670;&#160;</a></span>CVFolds() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::CVFolds </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> const &amp;&#160;</td>
          <td class="paramname"><em>set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::size_t &gt; const &amp;&#160;</td>
          <td class="paramname"><em>foldStart</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00064">64</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a523c99e2d2843046e679990653983839" name="a523c99e2d2843046e679990653983839"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a523c99e2d2843046e679990653983839">&#9670;&#160;</a></span>dataset() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> &amp; <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::dataset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the dataset underying the folds. </p>

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00114">114</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

</div>
</div>
<a id="ad0bbe71a5ab3021ec9b6e43d7b6555fd" name="ad0bbe71a5ab3021ec9b6e43d7b6555fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0bbe71a5ab3021ec9b6e43d7b6555fd">&#9670;&#160;</a></span>dataset() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> const  &amp; <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::dataset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the dataset underying the folds. </p>

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00109">109</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

</div>
</div>
<a id="a55e4d73aff1389cb61fc9e41fc1e92ee" name="a55e4d73aff1389cb61fc9e41fc1e92ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55e4d73aff1389cb61fc9e41fc1e92ee">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the number of folds of the dataset. </p>

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00104">104</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_cross_validation_error.html#a8c37335d594fe383eeabcae364fa73a9">shark::CrossValidationError&lt; ModelTypeT, LabelTypeT &gt;::eval()</a>, <a class="el" href="_c_v_folds_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main()</a>, <a class="el" href="classshark_1_1_c_v_folds.html#a71a49586552161e0027348fa3a165310">shark::CVFolds&lt; DatasetTypeT &gt;::training()</a>, <a class="el" href="classshark_1_1_c_v_folds.html#a04f39c269ed88cf04953269a022f925a">shark::CVFolds&lt; DatasetTypeT &gt;::trainingFoldIndices()</a>, <a class="el" href="classshark_1_1_c_v_folds.html#a02f53dc5f3585ac17b190bbbe9549b88">shark::CVFolds&lt; DatasetTypeT &gt;::validation()</a>, and <a class="el" href="classshark_1_1_c_v_folds.html#ab2345d3eba31a6b7d4d47cd8e0e6f6e7">shark::CVFolds&lt; DatasetTypeT &gt;::validationFoldIndices()</a>.</p>

</div>
</div>
<a id="a71a49586552161e0027348fa3a165310" name="a71a49586552161e0027348fa3a165310"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71a49586552161e0027348fa3a165310">&#9670;&#160;</a></span>training()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::training </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00081">81</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_v_folds.html#a55e4d73aff1389cb61fc9e41fc1e92ee">shark::CVFolds&lt; DatasetTypeT &gt;::size()</a>, <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>, and <a class="el" href="classshark_1_1_c_v_folds.html#a04f39c269ed88cf04953269a022f925a">shark::CVFolds&lt; DatasetTypeT &gt;::trainingFoldIndices()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_cross_validation_error.html#a8c37335d594fe383eeabcae364fa73a9">shark::CrossValidationError&lt; ModelTypeT, LabelTypeT &gt;::eval()</a>, <a class="el" href="classshark_1_1_svm_logistic_interpretation.html#a67444886b71f0bef297aaa3d396e6b81">shark::SvmLogisticInterpretation&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_svm_logistic_interpretation.html#aaf23373024f5c16cb6de60ee2c4fc2c8">shark::SvmLogisticInterpretation&lt; InputType &gt;::evalDerivative()</a>, <a class="el" href="_subsets_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main()</a>, and <a class="el" href="_k_n_n_cross_validation_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="a04f39c269ed88cf04953269a022f925a" name="a04f39c269ed88cf04953269a022f925a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04f39c269ed88cf04953269a022f925a">&#9670;&#160;</a></span>trainingFoldIndices()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html#aefd7fec613275b78bcc1eedfc0694b2f">IndexSet</a> <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::trainingFoldIndices </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00096">96</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_v_folds.html#a55e4d73aff1389cb61fc9e41fc1e92ee">shark::CVFolds&lt; DatasetTypeT &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_v_folds.html#a71a49586552161e0027348fa3a165310">shark::CVFolds&lt; DatasetTypeT &gt;::training()</a>.</p>

</div>
</div>
<a id="a02f53dc5f3585ac17b190bbbe9549b88" name="a02f53dc5f3585ac17b190bbbe9549b88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02f53dc5f3585ac17b190bbbe9549b88">&#9670;&#160;</a></span>validation()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html#a34e7cbd1c1ee70e1052194320e946574">DatasetType</a> <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::validation </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00085">85</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_v_folds.html#a55e4d73aff1389cb61fc9e41fc1e92ee">shark::CVFolds&lt; DatasetTypeT &gt;::size()</a>, <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>, and <a class="el" href="classshark_1_1_c_v_folds.html#ab2345d3eba31a6b7d4d47cd8e0e6f6e7">shark::CVFolds&lt; DatasetTypeT &gt;::validationFoldIndices()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_cross_validation_error.html#a8c37335d594fe383eeabcae364fa73a9">shark::CrossValidationError&lt; ModelTypeT, LabelTypeT &gt;::eval()</a>, <a class="el" href="classshark_1_1_svm_logistic_interpretation.html#a67444886b71f0bef297aaa3d396e6b81">shark::SvmLogisticInterpretation&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_svm_logistic_interpretation.html#aaf23373024f5c16cb6de60ee2c4fc2c8">shark::SvmLogisticInterpretation&lt; InputType &gt;::evalDerivative()</a>, <a class="el" href="_subsets_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main()</a>, and <a class="el" href="_k_n_n_cross_validation_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="ab2345d3eba31a6b7d4d47cd8e0e6f6e7" name="ab2345d3eba31a6b7d4d47cd8e0e6f6e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2345d3eba31a6b7d4d47cd8e0e6f6e7">&#9670;&#160;</a></span>validationFoldIndices()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetTypeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_v_folds.html#aefd7fec613275b78bcc1eedfc0694b2f">IndexSet</a> const  &amp; <a class="el" href="classshark_1_1_c_v_folds.html">shark::CVFolds</a>&lt; DatasetTypeT &gt;::validationFoldIndices </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>returns the indices that make up the i-th validation fold </p>

<p class="definition">Definition at line <a class="el" href="_c_v_dataset_tools_8h_source.html#l00091">91</a> of file <a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_v_folds.html#a55e4d73aff1389cb61fc9e41fc1e92ee">shark::CVFolds&lt; DatasetTypeT &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_v_folds.html#a02f53dc5f3585ac17b190bbbe9549b88">shark::CVFolds&lt; DatasetTypeT &gt;::validation()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Data/<a class="el" href="_c_v_dataset_tools_8h_source.html">CVDatasetTools.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
